//
//  NSString+Size.h
//  PFBrainTwister
//
//  Created by perfay-zjz on 2018/4/9.
//  Copyright © 2018年 perfayMini. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Size)

//计算文本宽度
- (CGFloat)getWidthWithH:(CGFloat)height withFont:(UIFont *)font;
//计算文本高度
- (CGFloat)getHeightWithW:(CGFloat)width withFont:(UIFont *)font;
//从开始截取到字符串  toString
- (NSString*)getSubStingtoString:(NSString*)toString;
//截取字符串fromString到toString中间的内容
- (NSString*)getSubStingFromString:(NSString*)fromString toString:(NSString*)toString;

@end
